package expressions.slogo;

import java.util.List;
import parsing.Token;

/**
 * Returns the y-coordinate of the turtle.
 */
@Token(regex = "ycor")
public class Ycor extends TurtleCommand
{

    public Ycor()
    {
        super(0);
    }

    @Override
    protected Double combineResults(List<Double> results, ITurtleContext context)
    {
        return context.getTurtle().getY();
    }

}
